package com.ytktt.study.week12.task4.redis.constant;

/**
 * redis常量
 *
 * @author ytk
 */
public class RedisConstant {

    public static final String ORDER_PRODUCER_MESSAGE_SEQ = "order:producer:%s:seq";

    public static final String ORDER_PRODUCER_MESSAGE_SEQ_WITH_PARTITION = ORDER_PRODUCER_MESSAGE_SEQ + ":partition:%s";

    public static final String ORDER_CONSUMER_STATE_KEY = "order:consumer:%s";

    public static final String CONSUMING = "consuming";

    public static final String CONSUMED = "consumed";

    public static final String ORDER_CONSUMER_PREPARE_CONSUME_SET = "order:consumer:%s:prepare";

    public static final String ORDER_CONSUMER_MESSAGE_SEQ = "order:consumer:%s:seq:partition:%s";

    public static final String ORDER_INFO = "order:consumer:info";
}
